package Array_;

import java.util.Arrays;
import java.util.Comparator;

/**
 * @description:
 * @Author yyp
 * @time
 */
public class ArrayMethod {
    public static void main(String[] args) {
        Integer arr[] = {1,2,6,5,4};
        Arrays.sort(arr);
//        Arrays.sort(arr,new Comparator(){
//            @Override
//            public
//        })
        System.out.println(Arrays.toString(arr));
    }
}
